﻿///LotusFlower.as 该类为莲花曲线图案
//vesion 1.0
//author 夏天的树人
package org.summerTree.graphics
{

	import flash.geom.Point;
	public class LotusFlower extends Base
	{

		public function LotusFlower()
		{

		}
		override public function clone():*
		{
			return new LotusFlower();
		}
		/* @ para   radius  极坐标点半径
		 * @ para   curveRadius  曲线控制点半径
		 * @ para   count  复制次数
		 * @ para   pare  参数调节
		 */
		public function CreatLotusFlower(radius:Number,curveRadius:Number,pare:Number=1,count:int=360):void
		{
			this.graphics.lineStyle(linekness,color);
			var n:int=0;
			while (n<count)
			{
				n++;
				var point:Point=Point.polar(radius,pare*n);//随机生成线条
				this.graphics.moveTo(0,0);
				this.graphics.curveTo(Math.cos(n*Math.PI/180)*curveRadius,Math.sin(n*Math.PI/180)*curveRadius,point.x,point.y);
			}
		}
	}
}